#include <Square.h>

Square::Square(unsigned int sideLength) :
	rectangle(sideLength, sideLength) {
}

unsigned int Square::getPerimeter() const {
	return rectangle.getPerimeter();
}

unsigned int Square::getArea() const {
	return rectangle.getArea();
}

void Square::setSideLength(unsigned int sideLength) {
	rectangle.setWidth(sideLength);
	rectangle.setHeight(sideLength);
}

